#ifndef _VECTCLASSES_HPP_
#define _VECTCLASSES_HPP_
#include <cstdio>

class Vector
{
private:
    int myLength;
    double * myData;

    int myDataCnt;

    void newMyData(int size);
    void delMyData();
public:
    Vector(int length);
    Vector();
    ~Vector();
    Vector(Vector const &a);
    Vector & operator = (Vector const &a);
    int getLength() const;
    void normalize();
    double multiply(Vector a);
    void add(Vector a);
    double & at(int i);
    int maxPlace() const;
};

class VectorArray
{
private:
    int myVectNumber;
    int myVectLength;
    Vector ** myVData;
    VectorArray(VectorArray const &a);
public:
    VectorArray(int number, int length);
    //VectorArray();
    ~VectorArray();
    VectorArray & operator = (VectorArray const &a);
    int getVectLength() const;
    int getVectNumber() const;
    Vector & getVector(int i);
    double & at(int i, int j);
    void read(FILE * f);
};

#endif
